<!--{template header}-->
<form action="{uri /system/page/systemConfig}" method="post">
	<table class="table mt-3 contact-list v-middle footable footable-5 footable-paging footable-paging-center breakpoint-lg">
		<thead class="table-light">
			<tr>
				<th colspan="2">基本配置</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<th>WitUid</th>
				<td>{if !empty(#base['witUid'])}{#base['witUid']}{/if}</td>
			</tr>
			<tr>
				<th>WitSecretId</th>
				<td>{if !empty(#base['witSecretId'])}{#base['witSecretId']}{/if}</td>
			</tr>
			<tr>
				<th>WitSecretKey</th>
				<td>{if !empty(#base['witSecretKey'])}{#base['witSecretKey']}{/if}</td>
			</tr>
			<tr>
				<th>WitPid</th>
				<td>{if !empty(#base['witPid'])}{#base['witPid']}{/if}</td>
			</tr>
			<tr>
				<th>配置导入</th>
				<td><textarea name="import" cols="40" rows="10" class="form-control"></textarea>
					<br>请将项目
					<a href="https://www.witframe.com/project/list/index" target="_blank">“通讯设置”</a>中的“配置导出”代码粘贴到这里，请在“系统类型”为“独立搭建”的项目中操作。
				</td>
			</tr>
		</tbody>
		<thead class="table-light">
			<tr>
				<th colspan="2">数据库配置</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<th>DSN</th>
				<td>
					<input name="db[dsn]" size="40" value="{if !empty(#db['dsn'])}{#db['dsn']}{/if}" class="form-control"><br>
					范例: mysql:dbname=database;host=127.0.0.1;port=3306
				</td>
			</tr>
			<tr>
				<th>用户名</th>
				<td><input name="db[user]" value="{if !empty(#db['user'])}{#db['user']}{/if}" class="form-control"></td>
			</tr>
			<tr>
				<th>密码</th>
				<td><input name="db[password]" value="{if !empty(#db['password'])}{#db['password']}{/if}" class="form-control"></td>
			</tr>
		</tbody>
		<thead class="table-light">
			<tr>
				<th colspan="2">Redis配置</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<th>服务器</th>
				<td>
					<input name="redis[server]" size="40" value="{if !empty(#redis['server'])}{#redis['server']}{/if}" class="form-control">
				</td>
			</tr>
			<tr>
				<th>端口</th>
				<td><input name="redis[port]" value="{if !empty(#redis['port'])}{#redis['port']}{/if}" class="form-control">
				</td>
			</tr>
			<tr>
				<th>是否长连接</th>
				<td><input name="redis[pconnect]" type="checkbox" value="1" class="form-check-input" {if !empty(#redis['pconnect'])}checked{/if}></td>
			</tr>
			<tr>
				<th>密码</th>
				<td><input name="redis[requirepass]" value="{if !empty(#redis['requirepass'])}{#redis['requirepass']}{/if}" class="form-control"></td>
			</tr>
		</tbody>
	</table>
	<button type="submit" class="btn btn-info rounded-pill px-4 waves-effect waves-light"><i class="bi-check2-circle me-1"></i>提交</button>
</form>
<!--{template footer}-->
